server {
    listen      80;
    server_name {domain};
    root        {remote_website_dir};
    access_log  {remote_website_dir}/logs/nginx.access.log;
    error_log   {remote_website_dir}/logs/nginx.error.log;
    
    # 处理静态文件/favicon.ico:
    location /favicon.ico {
        root {remote_website_dir}/src/mysite;
    }

    # 处理静态资源:
    location ~ ^\/static\/.*$ {
        root {remote_website_dir}/src/mysite;
    }
    location ~ ^\/front\/.*$ {
        root {remote_website_dir}/src;
    }
    location ~ ^\/example\/.*$ {
        root {remote_website_dir}/src;
    }
    
    location / {
        proxy_pass       http://localhost:{gunicorn_port};
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    }
}